from django.contrib import admin
from .models import News

class NewsManager(admin.ModelAdmin):
    list_display = ['id', 'title', 'ctime', 'origin', 'times']
    list_display_links = ['title']
    list_filter = ['origin']
    search_fields = ['title']
    list_editable = ['times']
# 注册模型类
admin.site.register(News, NewsManager)
